package com.xiaoma.spring.factorybean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author xiaomacdut
 * @date 2020年2月28日 下午12:32:18
 */
@Component
public class Service{
    
    @Autowired
    private Car car;
    
    
    /**
     * @return the car
     */
    public Car getCar(){
        return car;
    }
    
    
    /**
     * @param car the car to set
     */
    public void setCar(Car car){
        this.car = car;
    }
    
}
